<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/WEB-INF/views/common.jsp"%>
    <script type="text/javascript" src="/static/views/department.js"></script>
</head>
<body>
<!--在这里使用的是dialog和form表单结合的方式-->
<div id="department_dialog">
    <form action="department_save.json" id="editForm" method="post">
        <!--在这里给一个id的隐藏域-->
        <input type="hidden" name="id"/>
        <table align="center" style="margin-top: 20px">
            <tr>
                <td>部门编号</td>
                <td>
                    <input name="sn" type="text"/>
                </td>
            </tr>
            <tr>
                <td>部门名称</td>
                <td>
                    <input name="name" type="text"/>
                </td>
            </tr>
        </table>
    </form>
</div>
    <table id="department_datagrid"></table>
    <!--底部的按钮-->
    <div id="dialog_bt">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
    </div>
    <div id="tb">
        <div>
            <a class="easyui-linkbutton" data-cmd="add" data-options="iconCls:'icon-add',plain:true">添加</a>
            <a class="easyui-linkbutton" id="editBtn" data-cmd="edit" data-options="iconCls:'icon-edit',plain:true">编辑</a>
            <a class="easyui-linkbutton" id="quitBtn" data-cmd="remove" data-options="iconCls:'icon-remove',plain:true">离职</a>
            <a class="easyui-linkbutton"  data-cmd="reload" data-options="iconCls:'icon-reload',plain:true">刷新</a>
        </div>
    </div>
</body>
</html>
